<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
        <title>练题</title>
        <link rel="stylesheet" href="../public_css/public_header.css">
        <link rel="stylesheet" href="css/lianti.css">

        <script src="jquery.min.js"></script>
        <script src="../layer.js"></script>
        <script src="js/lianti.js"></script>
    </head>
    <body>
        <header class="public_header">
            <p class="public_header_title">练题</p>
        </header>


        <div class="container">
            <div class="lianti-cont">

                <div class="ti-list-cont">
                    <div class="ti-list">
                        <div class="ti-item active" id="subject_one">
                            <div>科一</div>
                        </div>
                        <div class="ti-item" onclick="tip()">
                            <div class="qw" >科二</div>
                        </div>
                        <div  class="ti-item" onclick="tip()">
                            <div class="qw">科三</div>
                        </div>
                        <div class="ti-item" id="subject_four">
                            <div class="qw">科四</div>
                        </div>
                        <div class="ti-item">
                            <div onclick = 'window.location.href="../NeedToKnow/aboutcar.html"'>拿本</div>
                        </div>
                    </div>
                </div>

                <div class="lianti-type-btn-cont">
                    <div class="lianti-type-btn-cont-left">
                        <div class="lianti-type-btn" >
                            <img class="shunxu" src="icons/shunxulianxi.png">
                            <div>顺序练习</div>
                        </div>
                        <div class="lianti-type-btn">
                            <img class="suiji" src="icons/suijlianxi.png">
                            <div class="qw">随机练习</div>
                        </div>
                    </div>
                    <div class="lianti-type-btn-cont-middle">
                        <div  class="lianti-point-circle" >
                            <div class="point-title">
                                <span class="qw">模拟考试</span>
                            </div>
                            <div class="point-val">
                                <!--  <span>123/2</span> -->
                            </div>
                        </div>
                    </div>
                    <div class="lianti-type-btn-cont-right">
                        <div class="lianti-type-btn" id="get_wrong">
                            <img src="icons/error.png">
                            <div>易错题</div>
                        </div>
                        <div class="lianti-type-btn" onclick ='window.location.href="../NeedToKnow/strategy1.html"'>
                            <img src="icons/kaoshi.png">
                            <div>考试秘籍</div>
                        </div>
                    </div>
                </div>

                <div class="lianti-mine-cont">
                    <div class="lianti-mine-bdy">
                        <div>
                            <img src="icons/collection.png" class="my_collection">
                            <div>我的收藏</div>
                        </div>
                        <div>
                            <img src="icons/mistake.png" class="wrong">
                            <div>我的错题</div>
                        </div>
                        <div>
                            <img src="icons/weixitizuo.png" id="continue">
                            <div> 未做习题</div>
                        </div>
                    </div>
                </div>

            </div>
            <footer style=" background-color: #fff;">
                <ul class="footer_list" >
                    <li   onclick="window.location.href='../index/index.html'" >
                        <img src="icons/study_drive_off.png" alt="学车">
                    </li>
                    <li  onclick="window.location.href='../studentorder/oder.html'" >
                        <img src="icons/oderForm_off.png" alt="订单">
                    </li>
                    <li >
                        <img src="icons/practice_on.png" alt="练题">
                    </li>
                    <li  onclick="window.location.href='../my/me.html'" >
                        <img src="icons/me_off.png" alt="我">
                    </li>
                </ul>
            </footer>


        </div>

        <script>

            //            if($('#subject_four').mouseup()){
            //                alert(1);
            //
            //            }
            $('#subject_four').click(function () {
                $('.shunxu').on('click', function () {
                    window.location.href='../subject4/try.html?select_type=shunxu'
                })
                $('.suiji').on('click', function () {
                    window.location.href='../subject4/try.html?select_type=suiji'
                })
                $('.my_collection').on('click', function () {
                    window.location.href='../subject4/try.html?select_type=showColl'//收藏题
                })
                $('.wrong').on('click', function () {
                    window.location.href='../subject4/try.html?select_type=wrong'//错题
                })
                $('.lianti-point-circle').on('click', function () {
                    window.location.href="../subject4/test_four.html";
                })
                $('#get_wrong').on('click', function () {
                    window.location.href="../subject4/try.html?select_type=easy_wrong";
                })
                $('#continue').on('click', function () {
                    window.location.href="../subject4/try.html?select_type=continue";
                })
            })


            $('.shunxu').on('click', function () {
                window.location.href='../subject1/demo.html?select_type=shunxu'
            })
            $('.suiji').on('click', function () {
                window.location.href='../subject1/demo.html?select_type=suiji'
            })
            $('.my_collection').on('click', function () {
                window.location.href='../subject1/demo.html?select_type=showColl'//收藏题
            })
            $('.wrong').on('click', function () {
                window.location.href='../subject1/demo.html?select_type=wrong'//错题
            })
            $('.lianti-point-circle').on('click', function () {
                window.location.href="../subject1/test.html";
            })
            $('#get_wrong').on('click', function () {
                window.location.href="../subject1/demo.html?select_type=easy_wrong";
            })
            $('#continue').on('click',function(){
                window.location.href="../subject1/demo.html?select_type=continue";
            })
            /*
$(".qw").click(function(){

        layer.msg('暂未开放哦')

});*/
            function tip(){
                layer.msg('暂未开放')
            }

            document.addEventListener("plusready", function() {
                // 注册返回按键事件
                plus.key.addEventListener('backbutton', function() {
                    // 事件处理
                    plus.nativeUI.confirm("退出程序？", function(event) {
                        if (event.index) {
                            plus.runtime.quit();
                        }
                    }, null, ["取消", "确定"]);
                }, false);
            });
        </script>
    </body>
</html>
